home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 4 / United Public Domain Gold 4.iso / scope / sc168.dms / sc168.adf / Serial / HELP.C < prev    next >
Text File  |  1990-11-16  |  4KB  |  78 lines

  1. int help( )
  2.    printf("   \n " ) ; 
  3.    printf("SERIAL.C - Released date: 21-SEP-1990  \n " ) ; 
  4.    printf("   \n " ) ; 
  5.    printf("  By: Ned Kelly  \n " ) ; 
  6.    printf("      Arlington, Texas  \n " ) ; 
  7.    printf("      817-277-5825  \n " ) ; 
  8.    printf("   \n " ) ; 
  9.    printf("  This program is designed to monitor th" ) ; 
  10.    printf("ree status lines (DTR, CTS, CD) \n " ) ; 
  11.    printf("on a serial port.  In the event that any" ) ; 
  12.    printf(" status line has changed, an \n " ) ; 
  13.    printf("event is sent to an ARexx task which wil" ) ; 
  14.    printf("l decide what to do with the \n " ) ; 
  15.    printf("event.  \n " ) ; 
  16.    printf("   \n " ) ; 
  17.    printf("  Calling sequence is:  \n " ) ; 
  18.    printf("     SERIAL p U u [D d] [Q l u v] [L n]  \n " ) ; 
  19.    printf("        where 'p' is the name of the ARe" ) ; 
  20.    printf("xx program to be invoked. \n " ) ; 
  21.    printf("        where 'u' is a unit number of a " ) ; 
  22.    printf("serial port to watch.  This \n " ) ; 
  23.    printf("              must be a number between '" ) ; 
  24.    printf("0' and '8'. \n " ) ; 
  25.    printf("              A unit must be sepcified. " ) ; 
  26.    printf(" There is no default. \n " ) ; 
  27.    printf("              Multiple units may be spec" ) ; 
  28.    printf("ified in a single call. \n " ) ; 
  29.    printf("              ie. SERIAL PROGRAM U 3 U 5" ) ; 
  30.    printf(" U 7 \n " ) ; 
  31.    printf("        where 'd' is a delay in units of" ) ; 
  32.    printf(" 1/50 second to wait between \n " ) ; 
  33.    printf("              checks of the serial port(" ) ; 
  34.    printf("s). \n " ) ; 
  35.    printf("              Default is 50 (ie. one sec" ) ; 
  36.    printf("ond). \n " ) ; 
  37.    printf("        The program will terminate under" ) ; 
  38.    printf(" one of two conditions. \n " ) ; 
  39.    printf("        If neither the 'Q' nor the 'L' o" ) ; 
  40.    printf("ption are specified, \n " ) ; 
  41.    printf("        the program will do it's thing o" ) ; 
  42.    printf("nce and then terminate. \n " ) ; 
  43.    printf("           If the 'Q' option is specifie" ) ; 
  44.    printf("d, then the program will \n " ) ; 
  45.    printf("              terminate when line 'l' (w" ) ; 
  46.    printf("hich may be either 'CD', 'CTS', \n " ) ; 
  47.    printf("              or 'DSR') on unit 'u' (whi" ) ; 
  48.    printf("ch may be a number from '0' \n " ) ; 
  49.    printf("              through '8') becomes value" ) ; 
  50.    printf(" 'v' (which may be either \n " ) ; 
  51.    printf("              '0' or '1').  \n " ) ; 
  52.    printf("           If the 'L' option is specifie" ) ; 
  53.    printf("d, then the program will \n " ) ; 
  54.    printf("              loop through 'n' times and" ) ; 
  55.    printf(" then quit. \n " ) ; 
  56.    printf("     When a status line has changed, pro" ) ; 
  57.    printf("gram will issue the command: \n " ) ; 
  58.    printf("        rx p SERIAL [l u v]  \n " ) ; 
  59.    printf("           where 'l' is the name of a st" ) ; 
  60.    printf("atus line which will be either \n " ) ; 
  61.    printf("                 CD, CTS, or DSR  \n " ) ; 
  62.    printf("           where 'u' is the unit number " ) ; 
  63.    printf("of the serial port which will \n " ) ; 
  64.    printf("                 be a number from '0' th" ) ; 
  65.    printf("rough '8'. \n " ) ; 
  66.    printf("           where 'v' will be either a '0" ) ; 
  67.    printf("' or a '1'. \n " ) ; 
  68.    printf("                 'v' will be '0' if the " ) ; 
  69.    printf("status line is open \n " ) ; 
  70.    printf("                     (not grounded).  \n " ) ; 
  71.    printf("                 'v' will be '1' if the " ) ; 
  72.    printf("status line is closed \n " ) ; 
  73.    printf("                     (grounded).  \n " ) ; 
  74.    printf("   \n " ) ; 
  75.    return( 0 ) ; 
  76.